<?php

echo "SERVER_NAME ".$_SERVER['SERVER_NAME'];

/* ********** conexion ************* */
	define("DB_HOST", "localhost");
    define("DB_USER", "root");
    define("DB_PASS", "21fdcacc42");
    define("DB_NAME", "bd_sges");
	
$db = mysql_connect(DB_HOST, DB_USER, DB_PASS);

// if (!$db || !isset(DB_HOST)) {
    // die('No se puede conectar!!' . mysql_error());
    // die();
// }

mysql_select_db(DB_NAME);

/* ********** conexion ************* */



$query = "select * from documentos";

$result = mysql_query($query) or trigger_error(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);


echo DB_HOST;

echo "<pre>";
print_r($row);
// echo "</pre>";
?>